package org.NooLab.openNLP.lang;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Vector;

import org.NooLab.structures.nlp.PoStagged;




public class Conditionals implements Serializable{
 
	private static final long serialVersionUID = 8198501812313221300L;
	// =================================

	// object references ..............

	
	// main variables / properties ....

	ArrayList<Conditional> conditionals = new ArrayList<Conditional>(); 
	
	ArrayList<PoStagged> prepositionalPhrases = new ArrayList<PoStagged>() ;
	
	// constants ......................

	// volatile variables .............

	
	
	// helper objects .................
	 

	// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

	
	public Conditionals(){
		
	}

	public int size(){
		return conditionals.size() ;
	}
	
	public void addPseudoPreposition( ArrayList<PoStagged> extract ){
		prepositionalPhrases = extract;
	}
	
	public void swap( int srcpos ,  int trgpos){
		Conditional itemB;
		
		itemB = conditionals.get(srcpos);
		conditionals.set(srcpos, conditionals.get(trgpos));
		conditionals.set(trgpos, itemB) ;
	}
	
	public void clear(){
		conditionals.clear() ;
	}
	// ------------------------------------------------------------------------

	public Conditional getItem(int index) {
		return conditionals.get(index);
	}
	
	public ArrayList<Conditional> getItems() {
		return conditionals;
	}


	public void setItems(ArrayList<Conditional> conditionals) {
		this.conditionals = conditionals;
	}

	public ArrayList<PoStagged> getPrepositionalPhrases() {
		return prepositionalPhrases;
	}

	public void setPrepositionalPhrases(ArrayList<PoStagged> prepositionalPhrases) {
		this.prepositionalPhrases = prepositionalPhrases;
	}
	
	
	
	
}
